<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script>
    // 定义函数
    function fun() {
      console.log(1);
      console.log(2);
      console.log(3);
      console.log(4);
    }
    // 调用函数
    fun();
    fun();
    fun();
    fun();
  </script>
</head>
<body>
  
</body>
</html>